package com.txts.road.app.device.service.impl;

import com.txts.road.app.device.model.dto.FirmwareUpgradeDTO;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.txts.road.app.device.mapper.DeviceConfigMapper;
import com.txts.road.app.device.service.DeviceConfigService;
import com.txts.road.app.device.model.entity.DeviceConfigEntity;
import com.txts.road.app.device.model.dto.DeviceConfigDTO;
import com.txts.road.app.device.model.vo.DeviceConfigVO;

import java.util.List;

/**
 * 设备配置服务实现类
 *
 * @author baoyr
 * @since 2025-07-17 10:47
 */
@Service
@RequiredArgsConstructor
public class DeviceConfigServiceImpl extends ServiceImpl<DeviceConfigMapper, DeviceConfigEntity> implements DeviceConfigService {


    @Override
    public List<DeviceConfigVO> getDeviceConfig(Long deviceId) {
        return List.of();
    }

    @Override
    public Boolean updateDeviceConfig(DeviceConfigDTO configDTO) {
        return null;
    }

    @Override
    public Boolean upgradeFirmware(Long deviceId, FirmwareUpgradeDTO upgradeDTO) {
        return null;
    }

    @Override
    public Double getUpgradeProgress(Long deviceId) {
        return 0.0;
    }
}
